package tianqi.service.Email.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tianqi.Dao.email.EmailDao;
import tianqi.entity.Email;
import tianqi.entity.UserY;
import tianqi.service.Email.EmailService;

@Service
public class EmailServiceImpl implements EmailService {
	
	@Autowired
	private EmailDao emailDao;

	@Override
	public Email queryEmailByUId(UserY userY) {
		return emailDao.queryEmailByUId(userY);
	}

	@Override
	public void saveEmail(Email email) {
		emailDao.saveEmail(email);
	}
	
}
